.cube {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    transform-style: preserve-3d;
    position: relative;
    perspective-origin: 20% 30%;
}

body {
    padding: 200px 0;
    height: 2000px;
}

.face {
    width: 200px;
    height: 200px;
    background-color: greenyellow;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
    font-size: 2em;
    text-transform: uppercase;
    text-align: center;
    line-height: 200px;
    font-weight: bold;
    transition-duration: 2s;
    backface-visibility: hidden;
}

.front {
    transition-delay: 2s;
}

.right {
    transition-delay: 4s;
}

.left {
    transition-delay: 6s;
}

.bottom {
    transition-delay: 8s;
}

.top {
    transition-delay: 10s;
}

.back {
    transition-delay: 12s;
}

.cube.active .right {
    background-color: rgb(214, 92, 92);
    transform: rotateY(90deg) translateZ(100px)
}

.cube.active .left {
    background-color: rgb(77, 201, 83);
    transform: rotateY(-90deg) translateZ(100px)
}

.cube.active .front {
    transform: translateZ(100px);
    background-color: rgb(77, 201, 191);
}

.cube.active .back {
    transform: rotateY(180deg) translateZ(100px);
    background-color: rgb(201, 77, 160);
}

.cube.active .top {
    transform: rotateX(90deg) translateZ(100px);
    background-color: rgb(77, 162, 201);
}

.cube.active .bottom {
    transform: rotateX(-90deg) translateZ(100px);
    background-color: rgb(77, 162, 201);
}

form {
    text-align: center;
}

.stage {
    transform-style: preserve-3d;
    perspective: 201px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    perspective-origin: 20% 30%;
}

.stage .box {
    width: 120px;
    height: 50px;
    background-color: red;
    display: flex;
    justify-content: center;
    align-items: center;
}

hr {
    margin-top: 50px;
}